import service from "@/utils/http"
export const getAllTags = () => {
    return service({
        method:"GET",
        url:"/tag/list"
    })
}

/*获取当前tag下面的文章列表*/
export const tagArticleList = (data:{
    tagId?:number,
    page?:number,
    pageSize?:number
}) => {
    return service({
        method:"POST",
        url:`/tag/articleList?tagId=${data.tagId}&page=${data.page}&pageSize=${data.pageSize}`,
    })
}

